﻿@using STX.Domain
@using STX.Web.Framework.Security
@model STX.Admin.Models.BizActivity.IndexModel
@{
    Layout = null;
    STX.Domain.TabAdministrator CurUser = ViewBag.CurUser;
}
<div class="listpage verticalSplitContainer" style="height: 100%;">
    <form method="post" action="@Url.Action("Query")">
        <div class="querybar">
        <table class="querytable">
            <tbody>
                <tr>
                    <td>
                            <div class="queryitem">
                                <span class="querytitle">地方：</span>
                                <select name="AreaId">
                                                 <option value="-1">请选择地方</option>
                                                 @foreach (var item in Model.Areas)
                                                 {
                                                     <option value="@item.Value">@item.Text</option>
                                                 }
                                             </select>
                            </div>
                        </td>
                    <td>
                        <div class="queryitem">
                            <span class="querytitle">活动名称：</span>
                            <input type="text" name="Name" class="textInput" />
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="querybuttonbar">
            <div class="simplebutton">
                <div class="r">
                    <button type="button" class="submit">
                        检索</button></div>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    </form>
    <div class="panelBar" ratio="#25">
        <ul class="toolBar">
            @if (CurUser.Position.CheckRights(RightsEnum.制作报价))
            {
                <li><a target="dialog" width="1000" height="500" backtype="html" refreshonclose="true" href="@Url.Action("addquote")" alt="..">
                        <span class="icon add">制作报价</span></a></li>
            }

            @*<li><a target="dialog" href="@Url.Action("edit")"  width="1100" height="600" backtype="html" refreshonclose="true" beforechk="link.onlySelectOne()" postdata="{id:link.getSelectid()}">
                    <span class="icon edit">详细</span></a></li>*@
            @if (CurUser.Position.CheckRights(RightsEnum.删除报价))
            {
                <li class=""><a target="ajax" confirm="确定要删除吗?" href="@Url.Action("delete")" backtype="refresh"  beforechk="link.selectAtLeastOne()" postdata="{ids:link.getSelectids()}">
                             <span class="icon delete">删除</span></a></li>
            }
        </ul>
    </div>
    <div ratio="*" class="verticalSplitContainer dataRefresh">
        @Html.Action("Query")
    </div>
</div>
